<?php
/**
 * Created by PhpStorm.
 * User: saive
 * Date: 16-4-29
 * Time: 上午3:23
 * 添加配置文件
 */
include_once "template.php";
include_once "functions.php";
include_once "files.php";

$params = array();
if(isset($_POST['alias']) && $_POST['alias']) {
    $params = $_POST;
} else {
    exit(json_encode(array('status'=>0,'msg'=>'请求错误，或者数据不全！','data'=>null)));
}

$res = _buildConfig($params);
exit(json_encode($res));
